import Vue from 'vue'
import Router from 'vue-router'
import main from '@/view/main'
import xuequfenxi from '@/view/xuequfenxi'
import yubaom from '@/view/yubaom'
import shishibaoming from '@/view/shishibaoming'
import xueweitiaoji from '@/view/xueweitiaoji'
import xuesheng from '@/view/xuesheng'
import xuexiao from '@/view/xuexiao'
import test from '@/view/test'
import test2 from '@/view/test2'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'main',
      component: main,
      meta: {
        title: '首页'
      }
    },
    {
      path: '/xuequfenxi',
      name: 'xuequfenxi',
      component: xuequfenxi,
      meta: {
        title: '学区分析'
      }
    },
    {
      path: '/yubaom',
      name: 'yubaom',
      component: yubaom,
      meta: {
        title: '预报名分析'
      }
    },
    {
      path: '/shishibaoming',
      name: 'shishibaoming',
      component: shishibaoming,
      meta: {
        title: '实时报名'
      }
    },
    {
      path: '/xueweitiaoji',
      name: 'xueweitiaoji',
      component: xueweitiaoji,
      meta: {
        title: '学位调剂'
      }
    },
    {
      path: '/xuesheng',
      name: 'xuesheng',
      component: xuesheng,
      meta: {
        title: '学生画像'
      }
    },
    {
      path: '/xuexiao',
      name: 'xuexiao',
      component: xuexiao,
      meta: {
        title: '学校画像'
      }
    },
    {
      path: '/test',
      name: 'test',
      component: test,
      meta: {
        title: '基于百度地图的飞线图测试1'
      }
    },
    {
      path: '/test2',
      name: 'test2',
      component: test2,
      meta: {
        title: '基于百度地图的飞线图测试2'
      }
    }
  ]
})
